import request from '@/utils/request'

// 查询部门列表
export function findRecordPage(data) {
  return request({
    url: '/b/project/record/findPage',
    method: 'POST',
    data:data
  })
}

// 新增分类
export function checkRecord(param) {
  console.log(param)
  return request({
    url: '/b/project/record/checkRecord',
    method: 'GET',
    params:param
  })
}

// 修改分类
export function modifyCate(data) {
  return request({
    url: '/b/project/category/modifyCate',
    method: 'POST',
    data:data
  })
}

// 删除分类
export function delCategory(cateId) {
  return request({
    url: '/b/project/category/delCategory?cateId='+cateId,
    method: 'GET'
  })
}

// 修改部门
export function findParentId(parentId) {
  return request({
    url: '/b/project/category/findParentId?parentId='+parentId,
    method: 'GET'
  })
}

export function findSalaryRecordPage(data) {
  return request({
    url: '/b/project/record/findPage',
    method: 'POST',
    data:data
  })
}

export function exportExcel(data) {
  return request({
    url: '/b/project/record/export',
    method: 'POST',
    responseType:'blob',
    data:data
  })
}


